const express = require('express')
const router = express.Router()


const menuHandler = require("../api_handler/role_handler.js")


// ** ---------- 路由 即api ---------- **

router.get('/role', menuHandler.getRoles)
router.get('/role/:roleId', menuHandler.getRoles)
router.post('/role', menuHandler.addRole)
router.put('/role', menuHandler.updateRole)
router.delete('/role', menuHandler.deleteRole)



// ** ---------- 路由 即api End---------- **


module.exports = router
